RecordSet class that represents the dataset returned by the database.
To keep memory overhead low, this class holds only the current row in memory. No prefetching of data is done, so the RecordCount() can return -1 ( which means recordcount not known).
Located in /adodb/adodb.inc.php (line 1273)
| Class | Description |
|---|---|
| RecordSet class that represents the dataset returned by the database. | |
| RecordSet class that represents the dataset returned by the database. | |
| ADORecordSet_array | This class encapsulates the concept of a recordset created in memory as an array. This is useful for the creation of cached recordsets. |
| ADORecordSet_odbc | RecordSet class that represents the dataset returned by the database. |
Constructor
set/returns the current recordset page when paginating
synonym for CurrentRow -- for ADO compat
set/returns the status of the atFirstPage flag when paginating
set/returns the status of the atLastPage flag when paginating
Clean up recordset
Get the ADOFieldObject of a specific column.
Fetch a row, returning PEAR_Error if no more rows.
This is PEAR DB compat mode.
Return the fields array of the current row as an object for convenience.
Return the fields array of the current row as an object for convenience.
Fetch a row, returning false if no more rows.
This is PEAR DB compat mode.
Get the value of a field in the current row by column name.
Will not work if ADODB_FETCH_MODE is set to ADODB_FETCH_NUM.
PEAR DB Compat - do not use internally
return recordset as a 2-dimensional array.
return recordset as a 2-dimensional array.
Helper function for ADOConnection->SelectLimit()
return whole recordset as a 2-dimensional associative array if there are more than 2 columns.
The first column is treated as the key and is not included in the array. If there is only 2 columns, it will return a 1 dimensional array of key-value pairs unless $force_array == true.
Generate a <SELECT> string from a recordset, and return the string.
If the recordset has 2 cols, we treat the 1st col as the containing the text to display to the user, and 2nd col as the return value. Default strings are compared with the FIRST column.
Generate a <SELECT> string from a recordset, and return the string.
If the recordset has 2 cols, we treat the 1st col as the containing the text to display to the user, and 2nd col as the return value. Default strings are compared with the SECOND column.
Use associative array to get fields array for databases that do not support associative arrays. Submitted by Paolo S. Asioli paolo.asioli@libero.it
If you don't want uppercase cols, set $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC before you execute your SQL statement, and access $rs->fields['col'] directly.
Synonym for GetArray() for compatibility with ADO.
Get the metatype of the column. This is used for formatting. This is because many databases use different names for the same type, so we transform the original type to our standardised version which uses 1 character codes:
Random access to a specific row in the recordset. Some databases do not support access to previous rows in the databases (no scrolling backwards).
Move to the first row in the recordset. Many databases do NOT support this.
Move to the last row in the recordset.
Move to next record in the recordset.
PEAR DB compat, number of cols
PEAR DB compat, number of rows
Portable RecordCount. Pablo Roca <pabloroca@mvps.org>
synonyms RecordCount and RowCount
synonyms RecordCount and RowCount
Documentation generated on Thu, 04 Sep 2008 16:14:47 +0400 by phpDocumentor 1.3.0RC3